<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="/WEB-INF/jsp/include/easyui.jsp" %>
<%@ include file="/WEB-INF/jsp/include/pForm.jsp" %>
<%@ include file="/WEB-INF/jsp/include/easyui-layui-upload.jsp" %>
<title>流程详情查看</title>
</head>
<body>
	<div id="tt" class="easyui-tabs" style="width:100%;height:250px;" fit="true">   
    <div title="单项工程表单" style=";display:none;">   
       <div class="easyui-panel" title="" data-options="fit:true,border:false" style="padding:10px;">
		<!-- 替换自动form表单 -->
		<form id="easyuiForm" method="post" action="#" style="min-width: 800px;width:100%;"   >
		 <!--类名属性及默认主键id-->
		 <input type="hidden" name="className" value="com.fs.jzzn.pojo.Project"  />
		 <input type="hidden" name="id" value="" />
		 <input type="hidden" name="createrId" value="${SESSION_USER.user.id}" />
		 
		 <div style="margin-bottom:20px">
		  <input class="easyui-textbox easyui-validatebox" name="pNo" style="width:240px;"   data-options="label:'路段编号:',boxWidth:500,boxHeight:400,boxTitle:'自动生成项目编号',textField:'pNo',valueField:'pNo',modleName:'autoPno',readonly:true "/>
		  <input class="easyui-textbox easyui-validatebox" name="pRoad" style="width:480px;" data-options="label:'工程段落:',validType:'length[0,45]'" />
		 </div>
		 
		  <div style="margin-bottom:20px">
		  <input class="easyui-textbox easyui-validatebox" name="url" style="width:240px;" data-options="label:'云储存:'" />
		  <select class="easyui-combobox" name="pName" style="width:485px;" data-options="label:'项目名称:'" 
				url="/console/newProject/combobox?textField=pName&valueField=pName" >
		   </select>
		 </div>
		 
		 
		 <div style="margin-bottom:20px">
		 	<select class="easyui-combobox" name="pType" style="width:240px;" data-options="label:'专业类别:'" 
				url="/console/combobox?valueField=dicName&textField=dicName&modleName=dictionary&pCode=A2&pCode_searchType=eq" >
		   </select>
		   <input class="easyui-textbox easyui-validatebox" name="contractNo" style="width:485px;" data-options="label:'订单编号:',validType:'length[0,45]'" />
		 </div>
		 
		 
		  <div style="margin-bottom:20px">
		  <input class="easyui-numberbox easyui-validatebox" name="budgetMoney" style="width:240px;" data-options="label:'立项预算:',precision:2" />
		  <input class="easyui-numberbox easyui-validatebox" name="actualMoney" style="width:240px;" data-options="label:'完工预算:',precision:2" />
		  <input class="easyui-textbox easyui-validatebox" name="status" value="初始化录入" style="width:240px;" data-options="label:'项目状态:'" readonly="readonly" />
		 </div>
		 
		  <div style="margin-bottom:20px">
		  	   <select class="easyui-combobox" name="pm" style="width:240px;" data-options="label:'项目经理:'" 
				url="/console/user/combobox?duty=项目经理&duty_searchType=eq&textField=nickName&valueField=nickName" >
		   	 </select>
		  
		  	 <select class="easyui-combobox" name="ppm" style="width:240px;" data-options="label:'工程经理:'" 
				url="/console/user/combobox?duty=工程经理&duty_searchType=eq&textField=nickName&valueField=nickName" >
		   	 </select>
		   	 
		  	 <select class="easyui-combobox" name="marketManager" style="width:240px;" data-options="label:'市场经理:'" 
				url="/console/user/combobox?duty=市场经理&duty_searchType=eq&textField=nickName&valueField=nickName" >
		   	 </select>
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<select class="easyui-combobox" name="constructionUnit" style="width:240px;" data-options="label:'建设单位:'" 
				url="/console/combobox?valueField=name&textField=name&modleName=assistUnit&type=建设单位&type_searchType=eq" >
		 	</select>
		  	<select class="easyui-combobox" name="designUnit" style="width:240px;" data-options="label:'设计单位:'" 
				url="/console/combobox?valueField=name&textField=name&modleName=assistUnit&type=设计单位&type_searchType=eq" >
		 	</select>
		 	<select class="easyui-combobox" name="operator" style="width:240px;" data-options="label:'运营商:'" 
				url="/console/combobox?valueField=dicName&textField=dicName&modleName=dictionary&pCode=A3&pCode_searchType=eq" >
		   </select>
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<select class="easyui-combobox" name="subpackage" style="width:240px;" data-options="label:'是否分包:'" >
		 		<option value="是">是</option>
		 		<option value="否">否</option>
		   </select>
		   <select class="easyui-combobox" name="subpackageScale" style="width:240px;" data-options="label:'分包比例:'" 
				url="/console/combobox?valueField=dicValue&textField=dicName&modleName=dictionary&pCode=B8&pCode_searchType=eq" >
		   </select>
		   <input class="easyui-datebox easyui-validatebox" name="pCreateDate" style="width:240px;" data-options="label:'订单日期:'" />
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<select class="easyui-combobox" name="department" style="width:240px;" data-options="label:'所属项目部:',loadFilter:fn.departmentFilter" 
				url="/console/combobox?valueField=dicName&textField=dicName&modleName=dictionary&pCode=A5&pCode_searchType=eq" >
		    </select>
		 	<select class="easyui-combobox" name="region" style="width:240px;" data-options="label:'区域:'" 
				url="/console/combobox?valueField=dicName&textField=dicName&modleName=dictionary&pCode=B5&pCode_searchType=eq" >
		    </select>
		 	<select class="easyui-combobox" name="priority" style="width:240px;" data-options="label:'优先级:'" 
				url="/console/combobox?valueField=dicName&textField=dicName&modleName=dictionary&pCode=B9&pCode_searchType=eq&text=中" >
		    </select>
		 </div>
		  
		 <div style="margin-bottom:20px">
		 	<input class="easyui-textbox easyui-validatebox" name="remark" multiline="true" style="width:485px;height:60px;" 
		 		 data-options="label:'备注:',required:false,validType:'length[0,500]'" />
		 	<label class="textbox-label textbox-label-before"  style="text-align: left; height: 24px; line-height: 24px;">施工信息:</label>
		 	<a id="viewInformationBut" style="color:-webkit-link;cursor: pointer;text-decoration: underline;" href="#" target="_blank">查看施工信息</a>
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<input class="easyui-layuiupload" name="attachment" style="width:725px;" data-options="label:'附件:',upload:{auto:false,height:150,readonly:true}" />
		 </div>
		</form>
	</div>    
    </div>   
    <div title="批注信息" data-options="" style="overflow:auto;padding:20px;display:none;">   
       <!-- 流程批注及提交处理 -->
		 <div style="margin-bottom:20px;margin-left: 90px;">
		 	<table id="commentGrid" title="批注信息列表"   style="height:210px;width: 630px;"></table>  
		</div>
    </div>   
    <div title="流程图" data-options="" style="padding:20px;display:none;">   
        <iframe id="flowImage" style="width:98%;height:98%;border:0"></iframe> 
    </div>   
</div>  

	
</body>
<script>
$(function(){
	fn.resetForm();
	var data = fn.getDialogData();
	
	if( data.processInstanceId &&  data.processInstanceId!=''){
		$("#flowImage").attr("src",'/console/activiti/viewImageByInstId?instId='+ data.processInstanceId);
	}
	
	setTimeout(function(){
		$("#viewInformationBut").attr("href","/console/information/view?pNo="+data.pNo);
	},1000);
	
	/*批注数据加载*/
	$('#commentGrid').datagrid({    
		url :'/console/activiti/comment/commentList',
		queryParams:{
			processInstanceId: data.processInstanceId 
		},
	    columns:[[    
	        {field:'time',title:'时间',width:130},    
	        {field:'userId',title:'批注人',width:130},    
	        {field:'fullMessage',title:'批注信息',width:'50%'}    
	    ]]    
	});  
});
</script>
</html>